package com.ledi.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ledi
 * @since 2017-11-30
 */
@TableName("t_task")
public class Task extends Model<Task> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 工单类型；默认0；
     */
	@TableField("task_type")
	private Integer taskType;
    /**
     * 工单内容
     */
	@TableField("task_info")
	private String taskInfo;
    /**
     * 学校名称
     */
	@TableField("school_name")
	private String schoolName;
    /**
     * 手机号
     */
	private String phone;
    /**
     * 状态：0-未处理；1已处理；
     */
	private Integer status;
    /**
     * 工单发起人
     */
	@TableField("creater_name")
	private String createrName;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
	@TableField("version_no")
	private Integer versionNo;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getTaskType() {
		return taskType;
	}

	public void setTaskType(Integer taskType) {
		this.taskType = taskType;
	}

	public String getTaskInfo() {
		return taskInfo;
	}

	public void setTaskInfo(String taskInfo) {
		this.taskInfo = taskInfo;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreaterName() {
		return createrName;
	}

	public void setCreaterName(String createrName) {
		this.createrName = createrName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getVersionNo() {
		return versionNo;
	}

	public void setVersionNo(Integer versionNo) {
		this.versionNo = versionNo;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Task{" +
			"id=" + id +
			", taskType=" + taskType +
			", taskInfo=" + taskInfo +
			", schoolName=" + schoolName +
			", phone=" + phone +
			", status=" + status +
			", createrName=" + createrName +
			", createTime=" + createTime +
			", versionNo=" + versionNo +
			"}";
	}
}
